<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
	<h3>id:{$user.id}</h3>
	<h3>name:{$user.name}</h3>
	<h3>nickname:{$user.nickname}</h3>
	<h3>token:{$user.token}</h3>
	<h3>access_token:{$user.access_token}</h3>
	<h3>uid:{$uid}</h3>
    <script>
		ws = new WebSocket("ws://127.0.0.1:1234");
		ws.onopen = function() {
			console.log("连接成功发送uid="+{$uid}+"给服务器");
			ws.send({$uid});
		};
	</script>
</body>
</html>